package com.kexun.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kexun.entity.DO.Manage;

import java.util.List;
import java.util.Map;

public interface ManageService extends IService<Manage> {

    Manage findByOpenId(String openId);

    Manage findByUserName(String username);

    Manage findUserById(int id);

    int have(String username);

    int updState(int id, int state);

    Manage register(Manage manage);

    int delManage(int id);

    IPage<Map<String, Object>> findList(String name, int page, int limit);

    void updatePassword(String oldPassword, String newPassword, Manage manage);

}
